package com.yf.screenshot;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModelStore;
import androidx.lifecycle.ViewModelStoreOwner;

import com.tencent.bugly.crashreport.CrashReport;
import com.wink_172.library.LibApplication;
import com.yangfan.screenshot.ScreenShotManager;

/**
 * @author : yangfan_rj
 * e-mail : yangfan_rj@yftech.com
 * @date   : 2022/12/7-14:31
 * desc   :
 */
public class App extends LibApplication implements ViewModelStoreOwner {

    private ViewModelStore mViewModelStore;

    @Override
    public void onCreate() {
        super.onCreate();
        mViewModelStore = new ViewModelStore();
        CrashReport.initCrashReport(getApplicationContext(), "34f9723121", true);
        ScreenShotManager.init(this);
    }

    @NonNull
    @Override
    public ViewModelStore getViewModelStore() {
        return mViewModelStore;
    }
}
